package com.yanjr.modules.ad.entity;

import java.util.Date;

import com.yanjr.common.persistence.DataEntity;

/**
 * 广告Entity
 * 
 * @ClassName: Advertisement 
 * @author yanjr big123@126.com 
 * @date 2016年3月24日 上午8:50:16
 */
@SuppressWarnings("serial")
public class Advertisement extends DataEntity<Advertisement> {

	private String id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 所属广告位
	 */
	private String spaceId;
	/**
	 * 广告展示数
	 */
	private int displayCount = 0;
	/**
	 * 广告点击数
	 */
	private int clickCount = 0;
	/**
	 * 开始时间
	 */
	private Date startTime;
	/**
	 * 结束时间
	 */
	private Date endTime;
	/**
	 * 排序号
	 */
	private Integer orderId;
	/**
	 * 是否可行 1:可行,0:不可行
	 */
	private Integer isEnable = 1;
	/**
	 * 广告图片内容地址
	 */
	private String adconPath;
	/**
	 * 视频地址
	 */
	private String flashPath;

	/**
	 * 文字内容
	 */
	private String content;
	/**
	 * 链接地址
	 */
	private String url;

	/**
	 * 无参构造器
	 */
	public Advertisement() {
		super();
	}

	/**
	 * 有参构造器
	 */
	public Advertisement(String id) {
		this();
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSpaceId() {
		return spaceId;
	}

	public void setSpaceId(String spaceId) {
		this.spaceId = spaceId;
	}

	public int getDisplayCount() {
		return displayCount;
	}

	public void setDisplayCount(int displayCount) {
		this.displayCount = displayCount;
	}

	public int getClickCount() {
		return clickCount;
	}

	public void setClickCount(int clickCount) {
		this.clickCount = clickCount;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public String getAdconPath() {
		return adconPath;
	}

	public void setAdconPath(String adconPath) {
		this.adconPath = adconPath;
	}

	public String getFlashPath() {
		return flashPath;
	}

	public void setFlashPath(String flashPath) {
		this.flashPath = flashPath;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

}
